package com.mlnx.device.service;

import com.mlnx.data.entity.BpInfo;
import com.mlnx.device.entity.Device;
import com.mlnx.device.pojo.dto.EcgDeviceDto;

import java.util.List;

import io.netty.channel.Channel;


/**
 * Created by amanda.shan on 2019/10/10.
 */
public interface DeviceNettyService {

    void getEcgDevice(String deviceId, CallBack<EcgDeviceDto> callBack);

    void getPatientId(String deviceId, CallBack<Integer> callBack);

    Long getBpLastTime(String deviceId);

    void setBpLastTime(String deviceId,Long time);

    void setXmbpCache(Channel channel, BpInfo bpInfo);

    List<BpInfo> getXmbpCache(Channel channel);

    Device getDevice(String deviceId);

}
